home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 22
/
Cream of the Crop 22.iso
/
program
/
snpd9611.zip
/
METAPHON.C
< prev
next >
Wrap
C/C++ Source or Header
|
1996-11-24
|
845b
|
36 lines
.I 0 3
/* +++Date last modified: 09-Jun-1996 */
/*
.D 1 1
.I 40 1
** If 0: Compute the Metaphone code for the first argument,
.D 41 1
.I 292 1
#include "dirent.h" /* metaphone() is portable so use Posix */
.D 293 1
.I 347 2
char curdir[FILENAME_MAX];
DIR *dirp;
.D 348 2
.I 350 2
char *ptr;
Boolean_T retval;
.D 351 1
.I 370 2
/* Don't look at file extension */
.I 372 10
else ptr = NULL;
retval = metaphone(ff_name(dstruct), meta, COMPARE);
/* Restore extension, if any */
if (ptr != NULL)
*ptr = '.';
if (Success_ == retval)
.D 373 6
.D 380 1